/* Admin Main page - GuppY PHP Script - version 4.5 CeCILL Copyright (C) 2004-2005 by Laurent Duveau Initiated by Laurent Duveau and Nicolas Alvès, followed by Albert Aymard, Jean Michel Misrachi, and all the GuppY Team Web site = http://www.freeguppy.org/ e-mail = info@aldweb.com Version History : v1.0 (30 December 2002) : initial release v1.7 (28 January 2003) : added Recommend to a Friend admin icon v1.8 (05 February 2003) : added category for forum v1.9 (11 February 2003) : added banners and free box added about popup window call v2.0 (27 February 2003) : the admin cookie is now automatically unactivated when closing the browser added photos admin icon v2.1 (10 March 2003) : focus on first field in password input form (by B@lou and Laurent Duveau) v2.2 (22 April 2003) : added Boxes Config (now a dedicated option) slightly modified the PopupWindow() Javascript function (resizable parameter) for use with the new editor assistant moved images from img/ to inc/img/admin/ v2.3 (27 July 2003) : fixed security issue (thanks frog-m@n) added forms style management (by Nicolas Alves) changed the order of icons from French alphabeutical to kind of logical (thanks B@lou) v2.4 (24 September 2003) : added new config3 and moved config3 to config4, config4 to config5 and config5 to config6 added react to an article option slightly modified the PopupWindow() Javascript function (scrollbars parameter) for use with the new mini message functionality secured $pg transfered parameter v3.0 (25 February 2004) : added newsletter and logbook (by Nicolas Alves) added skins management (by Nicolas Alves) added Plugin Management compatibility with php.ini register_globals=off parameter (thanks JonnyQuest) v4.0 (06 December 2004) : added page title (by Jean-Mi) added optionnal writer (by Icare) put cellpadding to 1 and cellspacing to 3 instead of 0 (Isa) export admin area into administrateur.php and redac area into adminredac.php (by Nicolas Alves) v4.5 (06 June 2005) : display only admin pass or writer login, optimized identity check process (by Icare) v4.5.1 (07 July 2005) : fixed writer connexion if writer service not checked (by Icare) */ header("Pragma: no-cache"); define("CHEMIN", "../"); $topmess = "Administration"; include(CHEMIN."inc/reglobals.inc"); include(CHEMIN."data/config.inc"); include(CHEMIN."inc/includes.inc"); $portalname="GuppyAdmin"; switch ($action) { case 'admin': header("location:admin.php?lng=".$lng."&wri=admin"); break; case 'redac': header("location:admin.php?lng=".$lng."&wri="."$wri."); break; default: } include ("action.php"); if ($wri == "admin") { include("mdp.php"); } else { if (FileDBExist(REDACREP.$wri.INCEXT)) { @include(REDACREP.$wri.INCEXT); $mdp=md5($drtuser[38]); } } if (md5($pass) == $mdp) { setcookie($portalname, crc32($mdp)); } elseif ($logout == 1) { setcookie($portalname, ""); echo ""; } $pg = strip_tags($pg); if (($_COOKIE[$portalname] == crc32($mdp) || md5($pass) == $mdp) && empty($pg)) { $topmess = $admin1; include(CHEMIN."inc/hpage.inc"); htable($admin1, "100%"); if (FileDBExist(REDACREP.$wri.INCEXT) && ($_COOKIE[$portalname] == crc32($mdp)) && $serviz[42] == "on") { include("adminredac.php"); } elseif (($wri == "admin") && ($_COOKIE[$portalname] == crc32($mdp))) { include("adminstrateur.php"); } else { ?>
echo $admin849; ?>
} if ($wri =="admin") { include("plugins/plugins.inc"); } ?> btable(); include(CHEMIN."inc/bpage.inc"); } elseif ($_COOKIE[$portalname] == crc32($mdp) && !empty($pg)) { if (($pg == "plugin") && (file_exists("plugins/".$plug.".inc"))) { include("plugins/".$plug.".inc"); } elseif (file_exists("inc/".$pg.".inc")) { include("inc/".$pg.".inc"); } else { ?>echo $admin20; ?> echo $admin21; ?>
} } else { include(CHEMIN."inc/hpage.inc"); htable($admin23, "100%"); ?>